package cn.me.alphamq.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * NameServer 的配置类
 *
 * @author f
 */
@Configuration
@ConfigurationProperties(prefix = "mq.nameserver")
public class NameServerProperties {

    /**
     * NameServer 的 ip 地址
     */
    private String ip;

    /**
     * NameServer 的端口号
     */
    private Integer port;

    /**
     * 验证连接的用户名
     */
    private String username;

    /**
     * 验证连接的密码
     */
    private String password;

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
